<?php
session_start();
var_dump($_SESSION); //See what's in session
echo "11111<br>";

$c = curl_init('http://smsrelax.local:8080/admin/image/list');

curl_setopt($c, CURLOPT_POST, true);
curl_setopt($c, CURLOPT_POSTFIELDS, '');
curl_setopt($c, CURLOPT_VERBOSE, TRUE);
curl_setopt($c, CURLOPT_COOKIE, 'PHPSESSID=l3g5b8vrd9sv8pep6oefupqt16');
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
session_write_close();
$page = curl_exec ($c);
echo "<br>";
echo "<br>";
echo '--'.$page.'---';
curl_close ($c);
